var w2c_adl;

try {
	if (!adl_functions)
		adl_functions = null;
}
catch (e) {
	var adl_functions = null;
}
if (!adl_functions) {
	var adl_functions = (function() {
		var user_agent = navigator.userAgent.toLowerCase();
		return {
			is_opera : (user_agent.indexOf('opera') > -1),
			is_safari : (user_agent.indexOf('safari') > -1),
			is_gecko : (!this.is_opera && !this.is_safari && user_agent.indexOf('gecko') > -1),
			is_ie : (!this.is_opera && user_agent.indexOf('msie') > -1),
			dom_loaded : false,
			JSON : function(){function f(n){return n<10?'0'+n:n;}
Date.prototype.toJSON=function(){return this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z';};var m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};function stringify(value,whitelist){var a,i,k,l,r=/["\\\x00-\x1f\x7f-\x9f]/g,v;switch(typeof value){case'string':return r.test(value)?'"'+value.replace(r,function(a){var c=m[a];if(c){return c;}
c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+
(c%16).toString(16);})+'"':'"'+value+'"';case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
if(typeof value.toJSON==='function'){return stringify(value.toJSON());}
a=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))){l=value.length;for(i=0;i<l;i+=1){a.push(stringify(value[i],whitelist)||'null');}
return'['+a.join(',')+']';}
if(whitelist){l=whitelist.length;for(i=0;i<l;i+=1){k=whitelist[i];if(typeof k==='string'){v=stringify(value[k],whitelist);if(v){a.push(stringify(k)+':'+v);}}}}else{for(k in value){if(typeof k==='string'){v=stringify(value[k],whitelist);if(v){a.push(stringify(k)+':'+v);}}}}
return'{'+a.join(',')+'}';}}
return{stringify:stringify,parse:function(text,filter){var j;function walk(k,v){var i,n;if(v&&typeof v==='object'){for(i in v){if(Object.prototype.hasOwnProperty.apply(v,[i])){n=walk(i,v[i]);if(n!==undefined){v[i]=n;}}}}
return filter(k,v);}
if(/^[\],:{}\s]*$/.test(text.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof filter==='function'?walk('',j):j;}
throw new SyntaxError('parseJSON');}};}(),
			cookies : {
				get : function(name, defvalue) {
					var result = null;
					var cookies = document.cookie;
					cookies = cookies.split(';');
					for (var i = 0; i < cookies.length; i++) {
						var cookie = cookies[i];
						while (cookie.charAt(0) == " ")
							cookie = cookie.substring(1, cookie.length);
						var s = cookie.indexOf(name + "=");
						if (s != -1) {
							s += name.length + 1;
							result = unescape(cookie.substring(s, cookie.length));
						}
					}
					if (!result)
						result = defvalue;
					return result;
				},
				set : function(name, value, expires, path, domain, secure) {
					var cookie = name + "=" + escape(value);
					if (expires)
						cookie += ";expires=" + expires;
					if (path)
						cookie += ";path=" + path;
					if (domain)
						cookie += ";domain=" + domain;
					if (secure)
						cookie += ";secure=" + secure;
					document.cookie = cookie;
				}
			},
			events : {
				add : function() {
					if (window.addEventListener)
						return function(o, e, fn, c) {
							o.addEventListener(e, fn, (c));
						}
					else if (window.attachEvent)
						return function(o, e, fn) {
							o.attachEvent("on" + e, fn);
						}
					else
						return function(o, e, fn) {
							var old_fn = o["on" + e];
							if (old_fn == null)
								o["on" + e] = fn;
							else
								o["on" + e] = function(e) {
									old_fn(e);
									fn(e);
								}
						}
				}(),
				add_event : function(o, e, fn, c) {
					if (typeof(o) == "string")
						var elm = document.getElementById(o);
					else
						var elm = o;
					this.add(elm, e, fn, c);
				},
				stop_propagation : function(e) {
					if (e.stopPropagation)
						e.stopPropagation();
					else
						e.cancelBubble = true;
				},
				prevent_default : function(e) {
					if (e.preventDefault)
						e.preventDefault();
					else
						e.returnValue = false;
				},
				stop_event : function(e) {
					this.stop_propagation(e);
					this.prevent_default(e);
				},
				get_target : function(e) {
					return e.target || e.srcElement;
				},
				get_current_target : function(e) {
					return e.currentTarget;
				},
				get_page_coor : function(e) {
					var x = e.pageX;
					var y = e.pageY;
					if (!x && x !== 0)
						x = e.clientX;
					if (!y && y !== 0)
						y = e.clientY;
					if (adl_functions.is_ie) {
						if (document.documentElement) {
							x += document.documentElement.scrollLeft;
							y += document.documentElement.scrollTop;
						}
						else if (document.body) {
							x += documentElement.scrollLeft;
							y += documentElement.scrollTop;
						}
					}
					return {
						x : x,
						y : y
					}
				}
			},
			dom : {
				get_size : function(id) {
					if (typeof(id) == "string")
						var element = document.getElementById(id);
					else
						var element = id;
					if (!element) {
						return null;
					}
					var result = {
						x : element.clientWidth || element.offsetWidth,
						y : element.clientHeight || element.offsetHeight
					};
					return result;
				},
				set_size : function(id, new_par) {
					if (typeof(id) == "string")
						var element = document.getElementById(id);
					else
						var element = id;
					if (!element) {
						return null;
					}
					if (typeof(new_par) != "object") {
						return null;
					}
					if (new_par.x)
						element.style.width = new_par.x + "px";
					if (new_par.y)
						element.style.height = new_par.y + "px";
					return new_par;
				},
				get_pos : function(id) {
					if (typeof(id) == "string")
						var element = document.getElementById(id)
					else
						var element = id;
					if (!element) {
						return null;
					}
					var xPos = element.offsetLeft;
					var tmpEl = element.offsetParent;
					while (tmpEl != null) {
						xPos += tmpEl.offsetLeft;
						tmpEl = tmpEl.offsetParent;
					}
					var yPos = element.offsetTop;
					var tmpEl = element.offsetParent;
					while (tmpEl != null) {
						yPos += tmpEl.offsetTop;
						tmpEl = tmpEl.offsetParent;
					}
					return {
						x : xPos,
						y : yPos
					}
				},
				set_pos : function(id, new_pos) {
					if (typeof(id) == "string")
						var element = document.getElementById(id);
					else
						var element = id;
					if (!element) {
						return null;
					}
					if (new_pos.x)
						element.style.left = new_pos.x + "px";
					if (new_pos.y)
						element.style.top = new_pos.y + "px";
				},
				create_element : function(element) {
					var elm = document.createElement(element.tag.toUpperCase());
					for (var i in element) {
						if (i != "tag" && typeof(element[i] != "function")) {
							switch (typeof(element[i])) {
								case "object" :
									for (var j in element[i])
										elm[i][j] = element[i][j]
								break;
								default :
									elm[i] = element[i];
								break;
							}
						}
					}
					return elm;
				}
			},
			tools : {
				popup_window : function() {
					var config = {
						img_path : "http://netfarm.netnugget.de/media/surveygen/"
					};
					var actual_popup_move = null;
					var actual_popup_resize = null;
					var registered = false;
					var window_mouse_move = function(e) {
						if (actual_popup_move) {
							adl_functions.events.stop_event(e);
							var cur_pos = adl_functions.events.get_page_coor(e);
							var new_pos = {
								x : cur_pos.x - actual_popup_move.delta.x,
								y : cur_pos.y - actual_popup_move.delta.y
							};
							adl_functions.dom.set_pos(actual_popup_move.elm, new_pos);
						};
						if (actual_popup_resize) {
							adl_functions.events.stop_event(e);
							var cur_pos = adl_functions.events.get_page_coor(e);
							var new_pos = {
								x : actual_popup_resize.elm_size_popup.x + (cur_pos.x - actual_popup_resize.cur_pos.x),
								y : actual_popup_resize.elm_size_content.y + (cur_pos.y - actual_popup_resize.cur_pos.y)
							};
							if (new_pos.x >= actual_popup_resize.settings.min_width)
								adl_functions.dom.set_size(actual_popup_resize.elm, {
										x : new_pos.x,
										y : null
									});
							if (new_pos.y >= actual_popup_resize.settings.min_height)
								adl_functions.dom.set_size(actual_popup_resize.content, {
										x : null,
										y : new_pos.y
									});
							//adlodge_window.style.width = "500px";
							//window_content.style.height = "500px";
							//adl_functions.dom.set_pos(actual_popup_move.elm, new_pos);
						}
					};
					var window_mouse_up = function(e) {
						if (actual_popup_move)
							actual_popup_move = null;
						if (actual_popup_resize)
							actual_popup_resize = null;
					};
					var window_stop_event = function(e) {
						adl_functions.events.stop_event(e);
					};
					var show = function(settings) {
						if (!registered) {
							adl_functions.events.add_event(adl_functions.is_ie ? document.body : window, "mousemove", window_mouse_move);
							adl_functions.events.add_event(adl_functions.is_ie ? document.body : window, "mouseup", window_mouse_up);
							//adl_functions.events.add_event(document.body, "mouseout", window_mouse_up);
							registered = true;
						}
						if (settings && typeof(settings) != "object")
							settings = {};
						var body = document.body || document.documentElement;
						var destroy = function() {
							body.removeChild(adlodge_window);
							adlodge_window = null;
						};
						
						if (typeof(settings.min_width) != "number")
							settings.min_width = 150;
						if (typeof(settings.min_height) != "number")
							settings.min_height = 150;
						
						if (typeof(settings.width) != "number" || (typeof(settings.width) == "number" && settings.width < settings.min_width))
							settings.width = settings.min_width;
						if (typeof(settings.height) != "number" || (typeof(settings.width) == "number" && settings.height < settings.min_height))
							settings.height = settings.min_height;
						
						// <adlodge_window>
						var adlodge_window = adl_functions.dom.create_element({
								tag : "DIV",
								style : {
									position : "absolute",
									overflow : "hidden",
									width : (settings.width + 0) + "px",
									zIndex : 1000
								}
							});
						if (typeof(settings.left) == "number")
							adlodge_window.style.left = settings.left + "px";
						if (typeof(settings.top) == "number")
							adlodge_window.style.top = settings.top + "px";
							// <adlodge_window_top>
							var adlodge_window_top = adl_functions.dom.create_element({
									tag : "DIV",
									style : {
										position : "relative",
										width : "100%",
										height : "17px",
										background : "url('" + config.img_path + "top_center.gif') repeat-x",
										zIndex : 1000,
										cursor : "move"
									}
								});
							adlodge_window.appendChild(adlodge_window_top);
							/*
							adlodge_window_top.appendChild(adl_functions.dom.create_element({
									tag : "IMG",
									src : config.img_path + "top_left.gif",
									style : {
										float : "left"
									}
								}));
							*/
								// <top_buttons>
								var top_buttons = adl_functions.dom.create_element({
										tag : "DIV",
										style : {
											float : "right",
											"zIndex" : 10,
											position : "absolute",
											right : "0px",
											width : "20px"
										}
									});
								adlodge_window_top.appendChild(top_buttons);
								/*
								var minimize_button = adl_functions.dom.create_element({
										tag : "IMG",
										src : config.img_path + "minimize.gif",
										style : {
											"float" : "left",
											"paddingLeft" : "2px",
											"cursor" : "pointer"
										}
									});
								top_buttons.appendChild(minimize_button);
								*/
								var close_button = adl_functions.dom.create_element({
										tag : "IMG",
										src : config.img_path + "close.gif",
										style : {
											"float" : "left",
											"paddingLeft" : "2px",
											"cursor" : "pointer"
										}
									});
								top_buttons.appendChild(close_button);
								/*
								top_buttons.appendChild(adl_functions.dom.create_element({
										tag : "IMG",
										src : config.img_path + "top_right.gif",
										style : {
											"float" : "left",
											"paddingLeft" : "2px"
										}
									}));
								*/
								// </top_button>
							// </adlodge_window_top>
							// <window_middle>
							var window_middle = adl_functions.dom.create_element({
									tag : "DIV",
									style : {
										"zIndex" : 1000,
										"borderLeft" : "1px solid #999999",
										"borderRight" : "1px solid #999999"
									}
								});
							adlodge_window.appendChild(window_middle);
								// <window_content>
								var window_content = adl_functions.dom.create_element({
									tag : "DIV",
									style : {
										"zIndex" : 1000,
										width : "100%",
										height : (settings.height - 17) + "px",
										"paddingLeft" : "0",
										"paddingRight" : "0",
										overflow : "hidden",
										"backgroundColor" : "#FFFFFF"
									}
								});
								// </window_content>
							window_middle.appendChild(window_content);
							if (typeof(settings.src) == "string") {
								var iframe = adl_functions.dom.create_element({
										tag : "IFRAME",
										src : settings.src,
										style : {
											width : "100%",
											height : "100%",
											borderWidth : "0px"
										}
									});
								window_content.appendChild(iframe);
							}
							else
								if (typeof(settings.inner) == "string")
									window_content.innerHTML = settings.inner;
							//
							var adlodge_window_bottom = adl_functions.dom.create_element({
									tag : "DIV",
									style : {
										"zIndex" : 100,
										"borderLeft" : "1px solid #999999",
										"borderRight" : "1px solid #999999",
										"borderBottom" : "1px solid #999999",
										position : "relative",
										height : "0px",
										"backgroundColor" : "#FFFFFF"
									}
								});
							adlodge_window.appendChild(adlodge_window_bottom);
								//
								var resize_button = adl_functions.dom.create_element({
										tag : "IMG",
										src : config.img_path + "bottom_right.gif",
										style : {
											cursor : "nw-resize",
											position : "absolute",
											right : "0px",
											bottom : "0px"
										}
									});
								if (!settings.resize || settings.resize !== true) {
									resize_button.style.width = "0px";
									resize_button.style.height = "0px";
								}
								adlodge_window_bottom.appendChild(resize_button);
								//
							//
						// </adlodge_window>
						
						// move
						var move_mouse_down_move = function(e, popup) {
							adl_functions.events.stop_event(e);
							var body = document.body || document.documentElement;
							//adl_functions.events.add_event(document.body, "select", window_stop_event);
							//adl_functions.events.add_event(document.body, "selectstart", window_stop_event);
							var zindex = new Number(popup.style.zIndex) + 1;
							popup.style.zIndex = zindex;
							var cur_pos = adl_functions.events.get_page_coor(e);
							var element_pos = adl_functions.dom.get_pos(popup);
							actual_popup_move = {
								elm : popup,
								delta : {
									x : cur_pos.x - element_pos.x,
									y : cur_pos.y - element_pos.y
								}
							};
						};
						adl_functions.events.add_event(adlodge_window_top, "mousedown", function(e) {
								move_mouse_down_move(e, adlodge_window);
							});
						// resize
						if (settings.resize && settings.resize === true) {
							var move_mouse_down_resize = function(e, popup, content) {
								adl_functions.events.stop_event(e);
								var body = document.body || document.documentElement;
								//adl_functions.events.add_event(document.body, "select", window_stop_event);
								//adl_functions.events.add_event(document.body, "selectstart", window_stop_event);
								var cur_pos = adl_functions.events.get_page_coor(e);
								var element_pos = adl_functions.dom.get_pos(popup);
								var element_size_popup = adl_functions.dom.get_size(popup);
								var element_size_content = adl_functions.dom.get_size(content);
								actual_popup_resize = {
									settings : settings,
									elm : popup,
									content : content,
									elm_size_popup : element_size_popup,
									elm_size_content : element_size_content,
									cur_pos : cur_pos,
									delta : {
										x : cur_pos.x - element_pos.x,
										y : cur_pos.y - element_pos.y
									}
								};
							};
							adl_functions.events.add_event(resize_button, "mousedown", function(e) {
									move_mouse_down_resize(e, adlodge_window, window_content);
								});
						}
						// close button
						adl_functions.events.add_event(close_button, "click", function() {
								destroy();
							});
						// resize_button
						var window_down_resize = function(e) {
							var target = adl_functions.events.get_target(e);
						};
						//
						body.appendChild(adlodge_window);
					};
					return {
						show : show
					}
				}()
			},
			get_query : function(script) {
				var result = "";
				if (script && script.src)
					result = script.src.replace(/^[^\?]+\??/,'');
				return result;
			},
			parse_query : function(query) {
				var result = new Object();
				if (query) {
					var pairs = query.split(/[;&]/);
					for (var i = 0; i < pairs.length; i++) {
						var key_val = pairs[i].split('=');
						if (!key_val || key_val.length != 2)
							continue;
						var key = unescape(key_val[0]);
						var val = unescape(key_val[1]);
						val = val.replace(/\+/g, ' ');
						result[key] = val;
					}
				}
				return result;
			},
			get_param : function(name, query, defvalue) {
				var params = this.parse_query(query);
				return (params[name]) ? params[name] : defvalue;
			},
			create_remote_script : function(src) {
				var new_script = document.createElement("SCRIPT");
				new_script.type = "text/javascript";
				new_script.language = "javascript";
				new_script.src = src;
				return new_script;
			},
			get_last_script : function(check_adl) {
				var result = null;
				var scripts = document.getElementsByTagName("SCRIPT");
				if (scripts.length > 0)
					result = scripts[scripts.length - 1];
				return result;
			},
			get_last_param : function(param) {
				var result = "";
				var last_script = this.get_last_script();
				if (last_script)
					result = this.get_param(param, this.get_query(last_script), "");
				return result;
			},
			get_last_cid : function() {
				return this.get_last_param("cid");
			},
			get_last_flid : function() {
				return this.get_last_param("flid");
			}
		};
	})();
	adl_functions.events.add_event(window, "load", function() {
			adl_functions.dom_loaded = true;
		});
}

var adl_default = function() {
	var adl_query = adl_functions.get_last_cid();
	
	try {
		if (adl_object && adl_object[adl_query]) {
			if (!adl_object[adl_query].ac_mand_RID)
				adl_object[adl_query].ac_mand_RID = "";
			
			if (!adl_object[adl_query].ac_mand_CID)
				adl_object[adl_query].ac_mand_CID = "";
			
			if (!adl_object[adl_query].ac_mand_WID)
				adl_object[adl_query].ac_mand_WID = "";
			
			if (!adl_object[adl_query].ac_mand_AID)
				adl_object[adl_query].ac_mand_AID = "";
			
			if (!adl_object[adl_query].ac_mand_TIT)
				adl_object[adl_query].ac_mand_TIT = "";
			
			if (!adl_object[adl_query].ac_dyn_PAGEID)
				adl_object[adl_query].ac_dyn_PAGEID = "";
			
			if (!adl_object[adl_query].ac_dyn_KATPFAD)
				adl_object[adl_query].ac_dyn_KATPFAD = "";
			
			if (!adl_object[adl_query].ac_dyn_KATTXT)
				adl_object[adl_query].ac_dyn_KATTXT = "";
			
			if (!adl_object[adl_query].ac_dyn_CLUSPFAD)
				adl_object[adl_query].ac_dyn_CLUSPFAD = "";
			
			if (!adl_object[adl_query].ac_dyn_CLUSTXT)
				adl_object[adl_query].ac_dyn_CLUSTXT = "";
			
			if (!adl_object[adl_query].ac_dyn_INFO)
				adl_object[adl_query].ac_dyn_INFO = "";
			
			if (!adl_object[adl_query].ac_dyn_UPROF)
				adl_object[adl_query].ac_dyn_UPROF = "";

			if (!adl_object[adl_query].ac_dyn_SALE_PARTNER)
				adl_object[adl_query].ac_dyn_SALE_PARTNER = "";

			if (!adl_object[adl_query].ac_dyn_APPEND)
				adl_object[adl_query].ac_dyn_APPEND = 0;

			if (w2c_adl && w2c_adl != "" && adl_object[adl_query].ac_dyn_UPROF == "")
				adl_object[adl_query].ac_dyn_UPROF = w2c_adl;
			
			if (!adl_object[adl_query].ac_dyn_OURL)
				adl_object[adl_query].ac_dyn_OURL = "";
				
			if (!adl_object[adl_query].ac_dyn_OSitepage)
				adl_object[adl_query].ac_dyn_OSitepage = "";
				
			if (!adl_object[adl_query].ac_dyn_OListpos)
				adl_object[adl_query].ac_dyn_OListpos = "";
				
			if (!adl_object[adl_query].ac_dyn_OQuery)
				adl_object[adl_query].ac_dyn_OQuery = "";

			if (!adl_object[adl_query].ac_dyn_UNOBTRUSIVE)
				adl_object[adl_query].ac_dyn_UNOBTRUSIVE = 0;
		}
	}
	catch (e) {}
	
}();

var adl_default_page = function() {
	var adl_query = adl_functions.get_last_cid();
	
	try {
		if (!adl_object || !adl_object[adl_query])
			return false;
	}
	catch (e) {
		return false;
	}
	
	try {
		if (!adl_detection)
			adl_detection = null;
	}
	catch (e) {
		adl_detection = null;
	}
	if (!adl_detection)
		adl_detection = function() {
			var loaded = false;
			var brs = navigator.userAgent.toLowerCase();
			
			// Default
			var none = 0;
			var isAvailable = 1;
			var browser = none;
			var bi_os = none;
			var bi_flash = none;
			var bi_wmp = none;
			var bi_nm = none;
			var bi_ob = none;
			var bi_du = none;
			var bi_rpl = none;
			var bi_aa = none;
			var bi_qt = none;
			var bi_javaPlugin = none;
			var bi_lang = none;
			var brwEng = none;
			var jetzt = none;
			var bi_dmns = "";
			
			// Params
			var params = "";
			var params_obj = {};
			
			// What Browser ?
			var detect_browser = function() {
				var b=new Array("unknown", "unknown", "unknown", "unknown");
				if (brs.search(/omniweb[\/\s]v?(\d+([\.-]\d)*)/) != -1) {
					// Omniweb
					b[1]=brs.match(/omniweb[\/\s]v?(\d+([\.-]\d)*)/)[1];
					(b[1] > 4.5 ? b[2]="khtml" : b[2]="omniweb");
					(brs.search(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/) == -1 ? b[3]=brs.match(/omniweb[\/\s](\d+([\.-]\d)*)/)[1] : b[3]=brs.match(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/)[4]);
					return b;
				} else if (brs.search(/opera[\/\s](\d+(\.?\d)*)/) != -1) {
					// Opera
					b[2]="opera";
					return b;
				} else if (brs.search(/crazy\s?browser\s(\d+(\.?\d)*)/) != -1) {
					// Crazy Browser
					b[2]="msie";
					return b;
				} else if (brs.search(/myie2/) != -1) {
					// MyIE2
					b[2]="msie";
					return b;
				} else if (brs.search(/netcaptor/) != -1) {
					// NetCaptor
					b[2]="msie";
					return b;
				} else if (brs.search(/avant\sbrowser/) != -1) {
					// Avant Browser
					b[2]="msie";
					return b;
				} else if (brs.search(/msn\s(\d+(\.?\d)*)/) != -1) {
					// MSN Explorer
					b[2]="msie";
					return b;
				} else if (brs.search(/msie\s(\d+(\.?\d)*)/) != -1) {
					// MS Internet Explorer
					b[2]="msie";
					return b;
				} else if (brs.search(/powermarks\/(\d+(\.?\d)*)/) != -1) {
					// PowerMarks
					b[2]="msie";
					return b;
				} else if (brs.search(/konqueror[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Konqueror
					b[2]="khtml";
					return b;
				} else if (brs.search(/safari\/(\d)*/) != -1) {
					// Safari
					b[2]="khtml";
					return b;
				} else if(brs.search(/zyborg/) != -1) {
					// Zyborg (SSD)
					b[2]="robot";
					return b;
				} else if (brs.search(/netscape6[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Netscape 6.x
					b[2]="gecko";
					return b;
				} else if (brs.search(/netscape\/(7\.\d*)/) != -1) {
					// Netscape 7.x
					b[2]="gecko";
					return b;
				} else if (brs.search(/galeon[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Galeon
					b[2]="gecko";
					return b;
				} else if (brs.search(/nautilus[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Nautilus
					b[2]="gecko";
					return b;
				} else if (brs.search(/firefox[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Firefox
					b[2]="gecko";
					return b;
				} else if (brs.search(/k-meleon[\/\s](\d+([\.-]\d)*)/) != -1) {
					// K-Meleon
					b[2]="gecko";
					return b;
				} else if (brs.search(/firebird[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Firebird
					b[2]="gecko";
					return b;
				} else if (brs.search(/phoenix[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Phoenix
					b[2]="gecko";
					return b;
				} else if (brs.search(/camino[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Camino
					b[2]="gecko";
					return b;
				} else if (brs.search(/epiphany[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Epiphany
					b[2]="gecko";
					return b;
				} else if (brs.search(/chimera[\/\s](\d+([\.-]\d)*)/) != -1) {
					// Chimera
					b[2]="gecko";
					return b;
				} else if (brs.search(/icab[\s\/]?(\d+(\.?\d)*)/) !=-1) {
					// iCab
					b[2]="icab";
					return b;
				} else if (brs.search(/netfront\/(\d+([\._]\d)*)/) != -1) {
					// NetFront
					b[2]="netfront";
					return b;
				} else if (brs.search(/netscape4\/(\d+([\.-]\d)*)/) != -1) {
					// Netscape 4.x
					b[2]="mozold";
					return b;
				} else if ( (brs.search(/mozilla\/(4.\d*)/) != -1) && (brs.search(/msie\s(\d+(\.?\d)*)/) == -1) ) {
					b[2]="mozold";
					return b;
				} else if ((brs.search(/mozilla\/5.0/) != -1) && (brs.search(/gecko\//) != -1)) {
					// Mozilla Seamonkey
					b[2]="gecko";
					return b;
				} else if (brs.search(/elinks/) != -1) {
					// ELinks
					b[2]="elinks";
					return b;
				} else if (brs.search(/w3m\/(\d+(\.?\d)*)/) != -1) {
					// w3m
					b[2]="w3m";
					return b;
				} else if (brs.search(/links/) != -1) {
					// Links
					b[2]="links";
					return b;
				} else if (brs.search(/java[\/\s]?(\d+([\._]\d)*)/) != -1) {
					// Java (as web-browser)
					b[2]="java";
					return b;
				} else if(brs.search(/lynx/) != -1) {
					// Lynx (SSD)
					b[2]="libwww-fm";
					return b;
				} else if(brs.search(/dillo/) != -1) {
					// Dillo (SSD)
					b[2]="dillo";
					return b;
				} else if(brs.search(/wget/) != -1) {
					// wget (SSD)
					b[2]="robot";
					return b;
				} else if(brs.search(/googlebot\-image/) != -1) {
					// GoogleBot-Image (SSD)
					b[2]="robot";
					return b;
				} else if(brs.search(/googlebot/) != -1) {
					// GoogleBot (SSD)
					b[2]="robot";
					return b;
				} else if(brs.search(/msnbot/) != -1) {
					// MSNBot (SSD)
					b[2]="robot";
					return b;
				} else if(brs.search(/turnitinbot/) != -1) {
					// Turnitin (SSD)
					b[2]="robot";
					return b;
				} else {
					return b;
				}
			};
			
			// What OS ?
			var detect_os = function() {
				var os=new Array("unknown", "unknown");
				brs = navigator.userAgent.toLowerCase();
				if (brs.search(/windows\sce/) != -1) {
					os[0]="wince";
					try {
						os[1]=brs.match(/windows\sce\/(\d+(\.?\d)*)/)[1];
				} catch (e) { }
				return os;
				} else if ( (brs.search(/windows/) !=-1) || ((brs.search(/win9\d{1}/) !=-1))) {
					os[0]="win";
					if (brs.search(/nt\s5\.1/) != -1) {
						os[1]="xp";
					} else if (brs.search(/nt\s5\.0/) != -1) {
						os[1]="2000";
					} else if ( (brs.search(/win98/) != -1) || (brs.search(/windows\s98/)!= -1 ) ) {
				os[1]="98";
					} else if (brs.search(/windows\sme/) != -1) {
						os[1]="me";
					} else if (brs.search(/nt\s5\.2/) != -1) {
						os[1]="win2k3";
					} else if ( (brs.search(/windows\s95/) != -1) || (brs.search(/win95/)!= -1 ) ) {
						os[1]="95";
					} else if ( (brs.search(/nt\s4\.0/) != -1) || (brs.search(/nt4\.0/) ) != -1) {
						os[1]="nt4";
					}
					return os;
				} else if (brs.search(/linux/) !=-1) {
					os[0]="linux";
					try {
						os[1] = brs.match(/linux\s?(\d+(\.?\d)*)/)[1];
				} catch (e) { }
				return os;
				} else if (brs.search(/mac\sos\sx/) !=-1) {
					os[0]="macosx";
					return os;
				} else if (brs.search(/freebsd/) !=-1) {
					os[0]="freebsd";
					try {
						os[1] = brs.match(/freebsd\s(\d(\.\d)*)*/)[1];
				} catch (e) { }
				return os;
				} else if (brs.search(/sunos/) !=-1) {
					os[0]="sunos";
					try {
						os[1]=brs.match(/sunos\s(\d(\.\d)*)*/)[1];
				} catch (e) { }
				return os;
				} else if (brs.search(/irix/) !=-1) {
					os[0]="irix";
					try {
						os[1]=brs.match(/irix\s(\d(\.\d)*)*/)[1];
				} catch (e) { }
				return os;
				} else if (brs.search(/openbsd/) !=-1) {
					os[0]="openbsd";
					try {
						os[1] = brs.match(/openbsd\s(\d(\.\d)*)*/)[1];
				} catch (e) { }
				return os;
				} else if ( (brs.search(/macintosh/) !=-1) || (brs.search(/mac\x5fpowerpc/) != -1) ) {
					os[0]="macclassic";
					return os;
				} else if (brs.search(/os\/2/) !=-1) {
					os[0]="os2";
					try {
						os[1]=brs.match(/warp\s((\d(\.\d)*)*)/)[1];
				} catch (e) { }
				return os;
				} else if (brs.search(/openvms/) !=-1) {
					os[0]="openvms";
					try {
						os[1]=brs.match(/openvms\sv((\d(\.\d)*)*)/)[1];
				} catch (e)  { }
				return os;
				} else if ( (brs.search(/amigaos/) !=-1) || (brs.search(/amiga/) != -1) ) {
					os[0]="amigaos";
					try {
						os[1]=brs.match(/amigaos\s?(\d(\.\d)*)*/)[1];
				} catch (e) { }
				return os;
				} else if (brs.search(/hurd/) !=-1) {
					os[0]="hurd";
					return os;
				} else if (brs.search(/hp\-ux/) != -1) {
					os[0]="hpux";
					try {
						os[1]=brs.match(/hp\-ux\sb\.[\/\s]?(\d+([\._]\d)*)/)[1];
				} catch (e) { }
				return os;
				} else if ( (brs.search(/unix/) !=-1) || (brs.search(/x11/) != -1 ) ) {
					os[0]="unix";
					return os;
				} else if (brs.search(/cygwin/) !=-1) {
					os[0]="cygwin";
					return os;
				} else if (brs.search(/java[\/\s]?(\d+([\._]\d)*)/) != -1) {
					os[0]="java";
					try {
						os[1]=brs.match(/java[\/\s]?(\d+([\._]\d)*)/)[1];
				} catch (e) { }
				return os;
				} else if (brs.search(/palmos/) != -1) {
					os[0]="palmos";
					return os;
				} else if (brs.search(/symbian\s?os\/(\d+([\._]\d)*)/) != -1) {
					os[0]="symbian";
					try {
						os[1]=brs.match(/symbian\s?os\/(\d+([\._]\d)*)/)[1];
				} catch (e) { }
				return os;
				} else {
					os[0]="unknown";
					return os;
				}
			};
			
			// Return Gecko version
			var get_gecko_version = function () {
				return brs.match(/gecko\/([0-9]+)/)[1];
			};
			
			// Return MSIE version
			var get_msie_version = function () {
				return brs.match(/msie\s(\d+(\.?\d)*)/)[1];
			};
			
			// DOM function - adds scripts elements to the page
			var netnug_dom_vb = function(content) {
				var eVB=document.createElement('<script defer language="vbscript" type="text/vbscript">\n ' + content + '\n</script>');
				document.getElementsByTagName("head")[0].appendChild(eVB);
			};
			
			var netnug_is_avail = function(mname, desc, ext) {
				var ndx=0;
				if(navigator.mimeTypes && mname != '' ? (navigator.mimeTypes[mname] && navigator.mimeTypes[mname].enabledPlugin != false) : true) {
					if(navigator.plugins) {
						cnt = navigator.plugins.length;
						if(mname != "" && navigator.mimeTypes[mname] == null)
							return 0;
						if(cnt > 0) {
							for(ndx = 0; ndx < cnt; ndx++) {
								if((navigator.plugins[ndx].description.indexOf(desc) != -1) || (navigator.plugins[ndx].name.indexOf(desc) != -1))
									return 1;
							}
						}
					}
				}
				return 0;
			};
			
			var netnug_plug_desc = function(desc, t) {
				var ndx=0;
				var s = "";
				if(navigator.plugins) {
					var cnt = navigator.plugins.length;
					if(cnt > 0) {
						for(ndx = 0; ndx < cnt; ndx++) {
							if((navigator.plugins[ndx].description.indexOf(desc) != -1) || (navigator.plugins[ndx].name.indexOf(desc) != -1)) {
								if(t == 1){
									rg = /([0-9][^\s]*)/;
								} else if (t ==2){
									rg = /([0-9][^\s]*[_][0-9][^\s])/;
								} else {
									rg = /([0-9].*)/;
								}
								a = rg.exec(navigator.plugins[ndx].description);
								if(a)
									s = a[0];
								else {
									a = rg.exec(navigator.plugins[ndx].name);
									if(a)
										s = a[0];
								}
								if(s != '')
									break;
							}
						}
					}
				}
				return escape(s);
			};
			
			var get_ie_component_version = function(clsID) {
				var version = none;
				if(document.body){
					version = document.body.getComponentVersion("{" + clsID + "}", "ComponentID");
				}
				return version;
			}
			
			var detect_dmn = function(){
				bi_dmn = ( bi_dmns != "" && bi_dmns.indexOf( document.domain ) == -1 ) ? 0 : 1;
			}
			
			var add_param = function(nm, vl){
				params += ( "&" + nm + "=" + escape(unescape(vl)) );
				params_obj[nm] = vl;
			}
			
			var run_all = function() {
				browser = detect_browser();
				bi_os = detect_os()[0];
				brwEng = browser[2];
				jetzt = new Date();
				// MSIE DETECTION
				if (brwEng == "msie") {
					
					//Adds behavior
					if(document.body) document.body.addBehavior("#default#clientCaps");
					
					//Flash
					var flVB = "";
					var fl = none;
					for(var i=12; i > 0; i--){
						try {
							var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
							fl = i;
							break;
						} catch(e) { }
					}
					if (fl == none) {
						netnug_dom_vb('on error resume next\n set fl = CreateObject("ShockwaveFlash.ShockwaveFlash")\n if IsObject(f) then flVB = hex(f.FlashVersion()) end if');
						if (flVB.length > 0){
							fl = flVB.substring(0,1);
						}
					}
					bi_flash = fl;
					
					//Windows Media Player
					bi_wmp = get_ie_component_version("6BF52A52-394A-11d3-B153-00C04F79FAA6");
					if(bi_wmp == none){
						bi_wmp = get_ie_component_version("22D6F312-B0F6-11D0-94AB-0080C74C7E95");
					}
					
					//Net Meeting
					bi_nm = get_ie_component_version("44BBA842-CC51-11CF-AAFA-00AA00B6015B");
					
					//Offline Browsing
					bi_ob = get_ie_component_version("3AF36230-A269-11D1-B5BF-0000F8051515");
					
					//Desktop Update
					bi_du = get_ie_component_version("89820200-ECBD-11CF-8B85-00AA005B4340");
					
					// Real Player
					try {
						var testObject = new ActiveXObject("rmocx.RealPlayer G2 Control.1");
						bi_rpl = testObject.GetVersionInfo();
					}catch(e) {}
					try {
						var testObject = new ActiveXObject("RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)");
						bi_rpl = testObject.GetVersionInfo();
					}catch(e) {}
					try {
						var testObject = new ActiveXObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit)");
						bi_rpl = testObject.GetVersionInfo();
					}catch(e) {}
					if(bi_rpl == none){
						netnug_dom_vb('on error resume next\n i_realplayer = IsObject(CreateObject("RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)"))\n set tmp = CreateObject("rmocx.RealPlayer G2 Control")\n if (IsObject(tmp)) then\n bi_rpl = tmp.GetVersionInfo\n end if');
					}
					
					// Adobe Acrobat
					if (window.ActiveXObject){
						for (var x=2; x<10; x++){
							try{
								var oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
								if (oAcro){
									bi_aa=x+'.0';
								}
								oAcro=null;
							}catch(e) {}
						}
						try{
							var oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
							if (oAcro4){
								bi_aa='4.0';
							}
							oAcro4=null;
						}catch(e) {}
						try{
							var oAcro7=new ActiveXObject('AcroPDF.PDF.1');
							if (oAcro7){
								bi_aa='7.0';
							}
							oAcro7=null;
						}catch(e) {}
					}
					
					bi_lang = navigator.browserLanguage;
					
				}
				else {
					
					//OTHER BROWSERS DETECTION
					
					//Flash
					var fl = none;
					
					if (navigator.plugins && navigator.plugins.length) {
						x = navigator.plugins["Shockwave Flash"];
						if (x) {
							fl = "yes";
							if (x.description) {
								y = x.description;
								fl = y.charAt(y.indexOf('.')-1);
							}
						} else {
							fl = none;
						}
						if (navigator.plugins["Shockwave Flash 2.0"]) {
							fl = 2;
						}
					} else if (navigator.mimeTypes && navigator.mimeTypes.length) {
						x = navigator.mimeTypes['application/x-shockwave-flash'];
						if (x && x.enabledPlugin) {
							fl = "yes";
						} else {
							fl = none;
						}
					}
					bi_flash = fl;
					
					// Real Player
					if(netnug_is_avail('','RealPlayer Version Plugin','')==1) {
						bi_rpl = netnug_plug_desc('RealPlayer Version Plugin',1);
					} else if(netnug_is_avail('','RealOne','')==1) {
						bi_rpl = netnug_plug_desc('RealOne',1);
					}
					
					// Adobe Acrobat
					if(netnug_is_avail('','Adobe Acrobat','')==1) {
						bi_aa = netnug_plug_desc('Adobe Acrobat',1);
					}
					
					//Quick Time
					if(netnug_is_avail('','QuickTime','')==1) {
						bi_qt = netnug_plug_desc('QuickTime',1);
					}
					
					// Java
					if(netnug_is_avail('','Java','') == 1) {
						bi_javaPlugin = netnug_plug_desc('Java',2);
					}
					
					bi_lang = navigator.language;
					
				}
				detect_dmn();
				
				add_param("url", document.location);
				add_param("ref", document.referrer);
				add_param("tm", jetzt.getTime());
				add_param("sx", screen.width);
				add_param("sy", screen.height);
				add_param("cd", screen.colorDepth);
				add_param("tmz", jetzt.getTimezoneOffset());
				add_param("flv", bi_flash);
				add_param("wmp", bi_wmp);
				add_param("nm", bi_nm);
				add_param("obp", bi_ob);
				add_param("wduNT", bi_du);
				add_param("rp", bi_rpl);
				add_param("aa", bi_aa);
				add_param("qt", bi_qt);
				add_param("jv", bi_javaPlugin);
				add_param("bl", bi_lang);
				add_param("pc", navigator.plugins.length);
				add_param("ai", bi_os);
				add_param("dmn", bi_dmn);
				
				loaded = true;
			}
			
			return {
				is_loaded : function() {
					return loaded;
				},
				run : function() {
					if (!this.is_loaded())
						run_all();
				},
				get_params : function() {
					return params;
				},
				params : params_obj
			}
		}();
	
	var adl_object_params =
		"&tit=" + escape(unescape(adl_object[adl_query].ac_mand_TIT)) +
		"&pageid=" + escape(unescape(adl_object[adl_query].ac_dyn_PAGEID)) +
		"&katu=" + escape(unescape(adl_object[adl_query].ac_dyn_KATPFAD)) +
		"&kattxt=" + escape(unescape(adl_object[adl_query].ac_dyn_KATTXT)) +
		"&clid=" + escape(unescape(adl_object[adl_query].ac_dyn_CLUSPFAD)) +
		"&cltext=" + escape(unescape(adl_object[adl_query].ac_dyn_CLUSTXT)) +
		"&info=" + escape(unescape(adl_object[adl_query].ac_dyn_INFO)) +
		"&uprof=" + escape(unescape(adl_object[adl_query].ac_dyn_UPROF)) +
		"&sale_partner=" + escape(unescape(adl_object[adl_query].ac_dyn_SALE_PARTNER)) +
		"&ourl=" + escape(unescape(adl_object[adl_query].ac_dyn_OURL)) +
		"&ositepage=" + escape(unescape(adl_object[adl_query].ac_dyn_OSitepage)) +
		"&olistpos=" + escape(unescape(adl_object[adl_query].ac_dyn_OListpos)) +
		"&oquery=" + escape(unescape(adl_object[adl_query].ac_dyn_OQuery));
	
	var adl_data = adl_object[adl_query];

	var insert_tracker = function() {
		adl_detection.run();
		document.write("<s"+"cript language=\"javascript\" type=\"text/javascript\" src=\"" + "http://www.cya1t.net/tracker/" + adl_data.ac_mand_RID + "/" + adl_data.ac_mand_CID + "/" + adl_data.ac_mand_WID + "/" + adl_data.ac_mand_AID + "/2/?a=1" + adl_object_params + adl_detection.get_params() + "\"></s"+"cript>");
	};

	var insert_tracker_onload = function() {
		adl_detection.run();
		var script = adl_functions.create_remote_script("http://www.cya1t.net/tracker/" + adl_data.ac_mand_RID + "/" + adl_data.ac_mand_CID + "/" + adl_data.ac_mand_WID + "/" + adl_data.ac_mand_AID + "/2/?a=1" + adl_object_params + adl_detection.get_params());
		var body = document.body || document.documentElement;
		if (body)
			body.appendChild(script);
	};

	var inline = (adl_data.ac_dyn_UNOBTRUSIVE != 1);
	// inline
	if (inline == true) {
		insert_tracker();
	}
	else {
	// onload
		adl_functions.events.add_event(window, "load", function() {
				insert_tracker_onload();
			});
	}
	return true;
}();
